//logs.js
const app = getApp()
var module=require("../../../utils/jinbo/chanquanbaohu.js");
Page({
  data: {
    content:[],
  	language:'',
    tabId: 1,
    businessScope: [],
    number:0,
  },
  onLoad: function() {
    var lang=app.globalData.lang;
    if (lang != "zh"){
      wx.setNavigationBarTitle({
        title: 'IPR'
      })
    }
    this.setData({
      language:lang,
      content:module[lang].content,
      businessScope: module[lang].businessScope
    });
  },
  selectedTap: function(e) {
    const index=e.currentTarget.dataset.index;
    this.setData({
      tabId: index,
      currentChoose:{
        businessScope:{id:Number(index),title:this.data.businessScope[Number(index)]}
      }, 
      number:0,
    });
    console.log(this.data.currentChoose);
  },
  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {
    var that = this;
    return {
      title: app.globalData.shareTitle,
      path: app.globalData.sharePath,
      imageUrl: '../../../images/share_img.png',
      success: function (res) {
        // 转发成功
      },
      fail: function (res) {
        // 转发失败
      }
    }
  },
})